package com.clss.emergencycall.bean;

import java.io.Serializable;

/**
 *
 * @author LiuV
 * @date 2017/6/20
 */

public class ChatMsgTextEntity implements Serializable{

    /**
     * from : f81f5660-6a75-11e6-9fcc-47901fcbfa74
     * event : CHAT_MESSAGE
     * body : {"sender":"f81f5660-6a75-11e6-9fcc-47901fcbfa74","text":"111","from":"石家庄市局接警员","time":"2017-06-20 18:08:02.434"}
     */
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    /** 本条消息的id */
    private String id;
    private String from;
    private String event;
    private BodyBean body;
    private String caseId;
    /** 聊天消息新增字段 */
    private String roomOrFriendId;

    public String getCaseId() {
        return caseId;
    }

    public void setCaseId(String caseId) {
        this.caseId = caseId;
    }


    public ChatMsgTextEntity(String from, String event, BodyBean body, String caseId) {
        this.from = from;
        this.event = event;
        this.body = body;
        this.caseId = caseId;
    }

    @Override
    public String toString() {
        return "ChatMsgTextEntity{" +
                "id='" + id + '\'' +
                ", from='" + from + '\'' +
                ", event='" + event + '\'' +
                ", body=" + body +
                '}';
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public BodyBean getBody() {
        return body;
    }

    public void setBody(BodyBean body) {
        this.body = body;
    }

    public String getRoomOrFriendId() {
        return roomOrFriendId;
    }

    public void setRoomOrFriendId(String roomOrFriendId) {
        this.roomOrFriendId = roomOrFriendId;
    }

    public static class BodyBean implements Serializable{

        /**
         * sender : f81f5660-6a75-11e6-9fcc-47901fcbfa74
         * text : 111
         * from : 石家庄市局接警员
         * time : 2017-06-20 18:08:02.434
         */
        private Long id;
        private String sender;
        private String text;
        private String from;
        private String time;
        private String nickName;
        private boolean appShow;

        private String roomId;
        private String roomOrFriendId;

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public String isRoomId() {
            return roomId;
        }

        public void setRoomId(String roomId) {
            this.roomId = roomId;
        }

        public String isRoomOrFriendId() {
            return roomOrFriendId;
        }

        public void setRoomOrFriendId(String roomOrFriendId) {
            this.roomOrFriendId = roomOrFriendId;
        }

        @Override
        public String toString() {
            return "BodyBean{" +
                    "sender='" + sender + '\'' +
                    ", text='" + text + '\'' +
                    ", from='" + from + '\'' +
                    ", time='" + time + '\'' +
                    ", nickName='" + nickName + '\'' +
                    ", appShow=" + appShow +
                    '}';
        }

        public BodyBean(String sender, String text, String from, String time) {
            this.sender = sender;
            this.text = text;
            this.from = from;
            this.time = time;
        }

        public BodyBean() {
        }

        public String getSender() {
            return sender;
        }

        public void setSender(String sender) {
            this.sender = sender;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public String getFrom() {
            return from;
        }

        public void setFrom(String from) {
            this.from = from;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public boolean isAppShow() {
            return appShow;
        }

        public void setAppShow(boolean appShow) {
            this.appShow = appShow;
        }

    }


}
